#include ".\Scene.h"

VKScene::VKScene(void)
{
}

VKScene::~VKScene(void)
{
}

long VKScene::InitScene(LPDIRECT3DDEVICE9 pDevice)
{
	m_Camera.Eye(0,0,-50);
	m_Camera.LookAt(0,0,100);
	m_Camera.Upvec(0,1,0);

	m_pDevice = pDevice;
	return 1;
}

void VKScene::AddObject(VKObject* pObj)
{
	m_ObjList.push_back(pObj);
}

void VKScene::RenderAll()
{
	m_Camera.Update(m_pDevice);
	for_each(m_ObjList.begin() , m_ObjList.end() , std::mem_fun(VKObject::Render));
}